package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class CarEntity implements Serializable{
    //@ApiModelProperty(value = "id", example = "1")
    private Long id;
   // @ApiModelProperty(value = "price", example = "1")
//    private BigDecimal price;
//    @ApiModelProperty(value = "createTime，不用传，也不入库", example = "1994-06-27 12:12:12")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date date;
//    @ApiModelProperty(value = "bootId", example = "1")
    private Integer bootId;

    private String another;

    public CarEntity() {
        System.out.println("CarEntity()");
    }

    public CarEntity(BigDecimal price, Date date, Integer bootId) {
        //this.price = price;
        this.date = date;
        this.bootId = bootId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

//    public BigDecimal getPrice() {
//        return price;
//    }
//
//    public void setPrice(BigDecimal price) {
//        this.price = price;
//    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getAnother() {
        return another;
    }

    public void setAnother(String another) {
        this.another = another;
    }

    public Integer getBootId() {
        return bootId;
    }

    public void setBootId(Integer bootId) {
        this.bootId = bootId;
    }
//
//    @Override
//    public String toString() {
//        return "CarEntity{" +
//                "id=" + id +
//                ", date=" + date.toString() +
//                ", bootId=" + bootId +
//                '}';
//    }
}
